package com.ddwl.schema.bo.message;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.time.Instant;

/**
 * @Author hemiaojun
 * @Date 2020/12/29 16:28
 */
@ApiModel(description = "推送店铺消息bo")
@Getter
@Setter
public class ShopMessageBo {

    @ApiModelProperty("消息内容")
    private String text;
    @NotNull(message = "消息标题不能为空")
    @ApiModelProperty("消息标题")
    private String title;
    @ApiModelProperty("推送时间")
    private Instant pushTime;
    @ApiModelProperty("消息创建人")
    private String operator;
    @ApiModelProperty("消息更新人")
    private String operatorUpdate;
    @NotNull(message = "消息发送对象类型不能为空")
    @ApiModelProperty("消息发送对象类型（6全体门店 7指定门店)")
    private Integer type;
    @ApiModelProperty("消息摘要")
    private String messageAbstract;
    @NotNull(message = "店铺id不能为空")
    @ApiModelProperty("店铺id")
    private String shopId;

}
